//
//  KJTableViewItem.h
//  KJKit
//
//  Created by Tiger on 2022/6/9.
//

#import <Foundation/Foundation.h>

@class KJTableViewItem;

typedef void(^KJTableViewItemSelectedBlock)(__kindof KJTableViewItem *item);

NS_ASSUME_NONNULL_BEGIN

@interface KJTableViewItem : NSObject

@property (nonatomic, strong) NSIndexPath *indexPath;
@property (nonatomic, assign) BOOL allowSelection; //default to YES
@property (nonatomic, assign) CGFloat cellHeight;
@property (nonatomic, assign) UITableViewCellStyle cellStyle;
@property (nonatomic, assign) UITableViewCellAccessoryType accessoryType;
@property (nonatomic, strong) UIView *accessoryView;
@property (nonatomic, strong) KJTableViewItemSelectedBlock selectedAction;
@property (nonatomic, assign) UITableViewCellSelectionStyle cellSelectionStyle;

- (Class)cellClass;
- (NSString *)cellID;

@end

NS_ASSUME_NONNULL_END
